﻿using P2P.Main.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace P2P.Main.Model
{
    public class ActiveNode
    {
        public struct TcpPublicActivePort 
        {
            public int Port { get; set; }
            public DateTime RegisterTime { get; set; }
        }
        public string Id { get; set; }
        public string Name { get; set; }
        public string IP { get; set; }
        public int UdpPublicPort { get; set; }
        public DateTime LastActiveTime { get; set; }
        public NatType NatType { get; set; }
        public bool IsActive { get; set; }
        public List<TcpPublicActivePort> TcpPublicActivePorts = new();
        public ActiveNode() { }
    }
}
